home *** CD-ROM | disk | FTP | other *** search
/ Programming Microsoft Visual Basic .NET / Programming Microsoft Visual Basic .NET (Microsoft Press)(X08-78517)(2002).bin / setup / vbnet / 01 getting started with net / vbcdemo / test.il < prev    next >
Encoding:
Text File  |  2001-09-06  |  2.3 KB  |  73 lines

  1. 
  2. //  Microsoft (R) .NET Framework IL Disassembler.  Version 1.0.2914.16
  3. //  Copyright (C) Microsoft Corp. 1998-2001. All rights reserved.
  4.  
  5. // VTableFixup Directory:
  6. // No data.
  7. .assembly extern mscorlib
  8. {
  9.   .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )                         // .z\V.4..
  10.   .ver 1:0:2411:0
  11. }
  12. .assembly extern Microsoft.VisualBasic
  13. {
  14.   .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )                         // .?_....:
  15.   .ver 7:0:0:0
  16. }
  17. .assembly Test
  18. {
  19.   .hash algorithm 0x00008004
  20.   .ver 0:0:0:0
  21. }
  22. .module Test.exe
  23. // MVID: {04008867-1531-4A47-B05E-F4E1C9245472}
  24. .imagebase 0x00400000
  25. .subsystem 0x00000003
  26. .file alignment 512
  27. .corflags 0x00000001
  28. // Image base: 0x03090000
  29. .class private auto ansi sealed Module1
  30.        extends [mscorlib]System.Object
  31. {
  32.   .custom instance void [Microsoft.VisualBasic]Microsoft.VisualBasic.Globals/StandardModuleAttribute::.ctor() = ( 01 00 00 00 ) 
  33.   .method public static void  Main() cil managed
  34.   {
  35.     .entrypoint
  36.     .custom instance void [mscorlib]System.STAThreadAttribute::.ctor() = ( 01 00 00 00 ) 
  37.     // Code size       43 (0x2b)
  38.     .maxstack  2
  39.     .locals init (float64 V_0,
  40.              float64 V_1)
  41.     IL_0000:  ldc.r8     12.5
  42.     IL_0009:  stloc.1
  43.     IL_000a:  ldloc.1
  44.     IL_000b:  ldc.r8     46.5
  45.     IL_0014:  call       float64 Module1::Add(float64,
  46.                                               float64)
  47.     IL_0019:  stloc.0
  48.     IL_001a:  ldstr      "The result of 12-5+46-5 is "
  49.     IL_001f:  call       void [mscorlib]System.Console::Write(string)
  50.     IL_0024:  ldloc.0
  51.     IL_0025:  call       void [mscorlib]System.Console::WriteLine(float64)
  52.     IL_002a:  ret
  53.   } // end of method Module1::Main
  54.  
  55.   .method public static float64  Add(float64 n1,
  56.                                      float64 n2) cil managed
  57.   {
  58.     // Code size       6 (0x6)
  59.     .maxstack  2
  60.     .locals init (float64 V_0)
  61.     IL_0000:  ldarg.0
  62.     IL_0001:  ldarg.1
  63.     IL_0002:  add
  64.     IL_0003:  stloc.0
  65.     IL_0004:  ldloc.0
  66.     IL_0005:  ret
  67.   } // end of method Module1::Add
  68.  
  69. } // end of class Module1
  70.  
  71. //*********** DISASSEMBLY COMPLETE ***********************
  72. // WARNING: Created Win32 resource file C:\Books\Programming VBNet\Code\01 Getting Started with NET\VbcDemo\test.res
  73.